home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / GNU Chess 3.0.3 / src / DragMgr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-10  |  853 b   |  33 lines  |  [TEXT/CWIE]

  1. /*
  2.     D'après Scott T. Boyd of the MacHax Group
  3.     Utilisation: Cf MacTutor v3 n°7 [July '87]
  4.     
  5.     Modifications pour l'adaptation à une fenêtre : Airy ANDRE
  6.     
  7.     Interface C : Airy ANDRE
  8. */
  9.  
  10. typedef struct ShadowRecord {
  11.       Boolean visible;
  12.     int     dx,dy;
  13.     int        CopyMode;
  14. } ShadowRecord;
  15.  
  16. typedef struct DragRecord {
  17.       BitMap        ShadowBits, UnderShadowBits,UnderBits,PictureBits;
  18.     RgnHandle    ShadowRegion,ThePictureRgn;
  19. } DragRecord, *DragPtr, **DragHandle;
  20.  
  21.  
  22. extern ShadowRecord ShadowStuff;
  23. extern BitMap OffScreenBits;
  24.  
  25. extern Boolean InitDrag(BitMapPtr, Rect *);
  26. extern Boolean NewDraggable(PicHandle, PicHandle, BitMapPtr, BitMapPtr,
  27.                                     DragHandle *);
  28. extern void DragItTo(DragHandle, Point, Boolean, Boolean);
  29. extern void DisposeDraggable(DragHandle);
  30. extern void UpdateOffScreen(void);
  31. extern void CloseDrag(Boolean);
  32. extern Rect * GetLastRect(void);
  33.